package org.jeecg.common.util;

import cn.hutool.core.lang.tree.TreeNode;
import lombok.Data;

/**
 * img树节点
 *
 *
 * @author Yafei Song
 * @date 2022/09/26
 */
@Data
public class ImgTreeNode extends TreeNode {

    /**
     * 节点id
     */
    private String id;
    /**
     * 父节点 默认0为根节点
     */
    private String parentId;
    /**
     * 节点名称
     */
    private String name;
    /**
     * 是否有子节点
     */
    private boolean hasChild;


    /**
     * 标题
     */
    private String title;


    /**
     * 关键
     */
    private String key;

    /**
     * img url
     */
    private String imgUrl;


    public ImgTreeNode(String id, String parentId, String name) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
    }
}
